package com.rc.saas.tenant.vo.acct;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.rc.saas.tenant.model.acct.TenantOperatorAccountRecord;

/**
 * @author frog
 * @date 2021/1/29
 */
@ExcelIgnoreUnannotated
public class TenantOperatorAccountRecordResultVo extends TenantOperatorAccountRecord {
    @ExcelProperty(value = "分销商账号", index = 1)
    private String loginName;
    @ExcelProperty(value = "分销商名称", index = 0)
    private String operatorName;
    @ExcelProperty(value = "变动类型", index = 3)
    private String recordTypeString;

    public String getRecordTypeString() {
        if ("0".equals(this.getRecordType())) {
            return "收入";
        } else if ("1".equals(this.getRecordType())) {
            return "支出";
        }
        return "";
    }

    public void setRecordTypeString(String recordTypeString) {
        this.recordTypeString = recordTypeString;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }
}
